logset(0);
loadlib"dll/ui.dll";
loadlib"dll/uart.dll";
loadlib"dll/tts.dll";
loadlib"dll/crypt.dll";
loadlib"dll/TextFlow.dll";

def ollamaPath(tag) //通过标签查找模型参数路径
{
	dd=inf(getenv("OLLAMA_MODELS")+"\\manifests\\registry.ollama.ai\\library\\"+str.replace(tag,":","\\"));
	if(!dd) return false;
	val=json.press(dd,"layers[0].digest");
	if(!val) return false;
	return (getenv("OLLAMA_MODELS")+"\\blobs\\"+str.replace(val,":","-"));
}